package com.zbystudy.po;

/**
 * Created By zby on 17:01 2019/3/16
 */
public class Dog extends Pet {

    private String name;

    private String food;

    public Dog() {
    }

    public Dog(String name, String food) {
        super(name, food);
        this.name = name;
        this.food = name;
    }

    @Override
    public void setName(String name) {
        super.setName(name);
        this.name = name;
    }

    @Override
    public void setFood(String food) {
        this.food = food;
        super.setFood(food);
    }
}
